package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Ciname;
import com.bean.Filming;
import com.bean.Room;
import com.bean.SeeFilm;
import com.bean.Site;
import com.bean.Ticket;
import com.bean.Users;
import com.mapper.CinameMapper;

@Service
public class CinameServiceImpl implements CinameService {
     @Autowired
     private CinameMapper cinameMapper;

	public CinameMapper getCinameMapper() {
		return cinameMapper;
	}

	public void setCinameMapper(CinameMapper cinameMapper) {
		this.cinameMapper = cinameMapper;
	}

	@Override
	public Integer regCiname(Ciname ciname) {
		// TODO Auto-generated method stub
		return cinameMapper.regCiname(ciname);
	}

	@Override
	public Ciname loginCiname(String manager, String mPassword) {
		// TODO Auto-generated method stub
		return cinameMapper.loginCiname(manager, mPassword);
	}

	@Override
	public Integer upFilm(Filming filming) {
		// TODO Auto-generated method stub
		return cinameMapper.upFilm(filming);
	}

	@Override
	public Integer updateFilm(Integer fid) {
		// TODO Auto-generated method stub
		return cinameMapper.updateFilm(fid);
	}

	@Override
	public Integer updateCiname(Ciname ciname) {
		// TODO Auto-generated method stub
		return cinameMapper.updateCiname(ciname);
	}

	@Override
	public List<Filming> findFilmsByCid(Integer cid) {
		// TODO Auto-generated method stub
		return cinameMapper.findFilmsByCid(cid);
	}

	@Override
	public Filming findFilmByFidAndCid(Integer cid, Integer fid) {
		// TODO Auto-generated method stub
		return cinameMapper.findFilmByFidAndCid(cid, fid);
	}

	@Override
	public Integer addCinameImg(Integer cid) {
		// TODO Auto-generated method stub
		return cinameMapper.addCinameImg(cid);
	}

	@Override
	public Ciname findCinameByCid(Integer cid) {
		// TODO Auto-generated method stub
		return cinameMapper.findCinameByCid(cid);
	}

	@Override
	public Integer addCidtoUser(Users user) {
		// TODO Auto-generated method stub
		return cinameMapper.addCidtoUser(user);
	}

	@Override
	public List<Room> findMyRoom(Integer cid) {
		// TODO Auto-generated method stub
		return cinameMapper.findMyRoom(cid);
	}

	@Override
	public Integer addRoomByCid(Room room) {
		// TODO Auto-generated method stub
		return cinameMapper.addRoomByCid(room);
	}

	@Override
	public Integer deleteRoomById(Integer id) {
		// TODO Auto-generated method stub
		return cinameMapper.deleteRoomById(id);
	}

	@Override
	public List<SeeFilm> findMySeeTime(Integer cid) {
		// TODO Auto-generated method stub
		return cinameMapper.findMySeeTime(cid);
	}

	@Override
	public Integer addSeeTimeByCid(SeeFilm seeFilm) {
		// TODO Auto-generated method stub
		return cinameMapper.addSeeTimeByCid(seeFilm);
	}

	@Override
	public Integer deleteSeeTimeById(Integer id) {
		// TODO Auto-generated method stub
		return cinameMapper.deleteSeeTimeById(id);
	}

	@Override
	public Integer SelectTimeAndRoom(SeeFilm seeFilm) {
		// TODO Auto-generated method stub
		return cinameMapper.SelectTimeAndRoom(seeFilm);
	}

	@Override
	public List<SeeFilm> findFilmSeeTime(Integer fid) {
		// TODO Auto-generated method stub
		return cinameMapper.findFilmSeeTime(fid);
	}

	@Override
	public List<Site> findRoomSite(Integer rid) {
		// TODO Auto-generated method stub
		return cinameMapper.findRoomSite(rid);
	}

	@Override
	public Integer addRoomSite(Site site) {
		// TODO Auto-generated method stub
		return cinameMapper.addRoomSite(site);
	}

	@Override
	public List<SeeFilm> findRoomByFidAndToday(Integer cid,Integer fid, String today) {
		// TODO Auto-generated method stub
		return cinameMapper.findRoomByFidAndToday(cid,fid,today);
	}

	@Override
	public SeeFilm findFilmSeeTimeById(Integer id) {
		// TODO Auto-generated method stub
		return cinameMapper.findFilmSeeTimeById(id);
	}

	@Override
	public List<Site> findRoomSiteByRoomName(String roomName) {
		// TODO Auto-generated method stub
		return cinameMapper.findRoomSiteByRoomName(roomName);
	}

	@Override
	public Room findRoomIdByRoomName(Integer rid) {
		// TODO Auto-generated method stub
		return cinameMapper.findRoomIdByRoomName(rid);
	}

	@Override
	public Ciname findMyCiname(String cname) {
		// TODO Auto-generated method stub
		return cinameMapper.findMyCiname(cname);
	}

	@Override
	public List<Ticket> findMyTicketSite(Integer rid) {
		// TODO Auto-generated method stub
		return cinameMapper.findMyTicketSite(rid);
	}
     
	
}
